@extends('layouts.homebase')
@section('tdk')
<title>{{$tdk['title']}}</title>
<meta name="keywords" content="{{$tdk['keywords']}}" />
<meta name="description" content="{{$tdk['description']}}" />
@endsection
@section('css')
@parent
<link rel="stylesheet" type="text/css" href="">
@endsection
@section('content')

<main>
  <div class="lbox">
    <div class="weizhi">您现在的位置是：<a href="{{request()->schemeAndHttpHost()}}" class="classlinkclass">首页</a> > 
	<a href="/tags/" class="classlinkclass">标签合集</a> @if($keyboard) > {{ $keyboard }} @endif
	</div>
	@if(!$keyboard)
	<div class="tags_box">
		<ul>
		@foreach($tags as $t)
		<a href="/tag/{{$t['tag_id']}}.html" target="_blank"> {{$t['tagname']}} </a>
	    @endforeach
		</ul>
    </div>
	@else
	<div class="blogs">
      <ul>
		@foreach($tags as $t)
		<li class="blogs_list"> <a href="/detail/{{$t['art_id']}}.html" target="_blank">
          <h2>{{$t['title']}}</h2></a>
          <p>{{ delcontent_html($t['content'],80) }}</p>
          <div class="blogs_tags">
		  @foreach(art_tagstoids($t['art_id']) as $k=>$v) <a href="/tag/{{$k}}.html" title="{{$v}}" target="_blank">{{$v}}</a> @endforeach	
		  </div>
         </li>
		@endforeach   
	  </ul>
    </div>
	@endif		
	<style>.flex{text-align: center !important;}</style>
	{{ $tags->links() }}
  </div>
  <aside class="rbox">
    <div class="ad">
		<a href="/" target="_blank">
		<img src="" alt="广告位">
		</a>
	</div>
    <div class="hot_news">
      <p class="h_title">文章热榜</p>
      <ul>
	  	@foreach($hotarts as $art)
		<li><a href="/detail/{{$art['art_id']}}.html" title="{{$art['title']}}" target="_blank">{{$art['title']}}</a></li>
		@endforeach	
	</ul>
    </div>
  </aside>
</main>

@endsection
@section('js')
@parent
<script></script> 
@endsection







